@import "./variables.scss";

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
    font-weight: 400 !important;
}

.el-upload {
    input[type="file"] {
        display: none !important;
    }
}

.el-upload__input {
    display: none;
}

.cell {
    .el-tag {
        margin-right: 0px;
    }
}

.small-padding {
    .cell {
        padding-left: 5px;
        padding-right: 5px;
    }
}

.fixed-width {
    .el-button--mini {
        padding: 7px 10px;
        width: 60px;
    }
}

.status-col {
    .cell {
        padding: 0 10px;
        text-align: center;

        .el-tag {
            margin-right: 0px;
        }
    }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
    transform: none;
    left: 0;
    position: relative;
    margin: 0 auto;
}

// refine element ui upload
.upload-container {
    .el-upload {
        width: 100%;

        .el-upload-dragger {
            width: 100%;
            height: 200px;
        }
    }
}

// dropdown
.el-dropdown-menu {
    a {
        display: block;
    }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
    display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
    box-sizing: content-box;
}

.el-menu-item {
    font-size: 16px;
}

.el-scrollbar__bar.is-horizontal {
    height: 8px;
}

.el-scrollbar__bar.is-vertical {
    width: 8px;
}


//el-input
.el-input--medium .el-input__inner {
    color: #ffffff;

    &::-webkit-input-placeholder {
        color: #5e6270 !important;
    }
}

.el-button.is-disabled {
    // opacity: 0.6;
}

/* 我们项目中element-ui 缺少了这个样式*/
.el-row--flex.is-align-center {
    align-items: center;
}

/* 消息提示框 */
.el-message-box {
    padding-bottom: 24px;
    background-color: #323642;
    border: none;

    * {
        color: #d1d1d1;

        .el-message-box__errormsg {
            color: #ff4949;
        }
    }

    .el-message-box__header {

        padding: 24px;

        .el-message-box__title {
            span {
                font-size: 18px;
                font-weight: 500;
                color: #fff;
            }
        }

        /* 关闭按钮 */
        .el-message-box__headerbtn {
            top: 10px;
            right: 10px;
            font-size: 12px;
        }
    }

    .el-message-box__content {
        padding: 0 24px;
    }

    .el-message-box__btns {
        padding: 24px;
        padding-bottom: 0;

        .el-button--primary {
            color: #fff;
        }

        .el-button+.el-button {
            margin-left: 16px;
        }
    }

    .el-input__inner {
        background: #2B2E39;
    }

    .el-message-box__input {
        padding-top: 6px;
    }

    .el-message-box__status+.el-message-box__message {
        padding-right: 0;
    }

    .el-message-box__message {
        overflow-wrap: break-word;
    }
}

.el-loading-mask {
    .el-loading-spinner .path {
        stroke: $green;
    }
}

//表单
.el-checkbox {
    .el-checkbox__input {

        .el-checkbox__inner,
        .el-checkbox__inner:hover,
        .el-checkbox__inner:focus,
        &.is-focus .el-checkbox__inner {
            width: 12px;
            height: 12px;
            margin-top: 2px;
            border-radius: 3px;
            box-sizing: border-box;
            border: 1px solid #60626e;
            background: transparent;

            &::after {
                top: -1px;
                left: 3px;
            }
        }
    }

    &.is-checked {
        .el-checkbox__input {

            .el-checkbox__inner,
            .el-checkbox__inner:hover {
                width: 12px;
                height: 12px;
                border-radius: 3px;
                border: 1px solid $greenLight;
                background: $greenLight;
            }
        }
    }
}

//树
.el-tree-node__content {
    .el-checkbox {
        height: 12px;
        font-size: 0;

        .el-checkbox__input {
            height: 12px;

            .el-checkbox__inner,
            .el-checkbox__inner:hover,
            .el-checkbox__inner:focus,
            &.is-focus .el-checkbox__inner {
                width: 12px;
                height: 12px;
                margin-top: 0;
                border-radius: 3px;
                box-sizing: border-box;
                border: 1px solid #60626e;
                background: transparent;

                &::after {
                    top: -1px;
                    left: 3px;
                }
            }
        }

        &.is-checked {
            .el-checkbox__input {

                height: 12px;

                .el-checkbox__inner,
                .el-checkbox__inner:hover {
                    width: 12px;
                    height: 12px;
                    border-radius: 3px;
                    border: 1px solid $greenLight;
                    background: $greenLight;
                }
            }
        }
    }

    .el-tree-node__expand-icon {
        user-select: none;
    }
}